package com.ruoyi.students.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.students.domain.registration;
import com.ruoyi.students.mapper.registrationMapper;
import com.ruoyi.students.service.IregistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 登记信息Service业务层处理
 * 
 * @author sm
 * @date 2021-05-13
 */
@Service
public class registrationServiceImpl implements IregistrationService 
{
    @Autowired
    private registrationMapper registrationMapper;

    /**
     * 查询登记信息
     * 
     * @param id 登记信息ID
     * @return 登记信息
     */
    @Override
    public registration selectregistrationById(Long id)
    {
        return registrationMapper.selectregistrationById(id);
    }

    /**
     * 查询登记信息列表
     * 
     * @param registration 登记信息
     * @return 登记信息
     */
    @Override
    public List<registration> selectregistrationList(registration registration)
    {
        return registrationMapper.selectregistrationList(registration);
    }

    /**
     * 新增登记信息
     * 
     * @param registration 登记信息
     * @return 结果
     */
    @Override
    public int insertregistration(registration registration)
    {
        return registrationMapper.insertregistration(registration);
    }

    /**
     * 修改登记信息
     * 
     * @param registration 登记信息
     * @return 结果
     */
    @Override
    public int updateregistration(registration registration)
    {
        return registrationMapper.updateregistration(registration);
    }

    /**
     * 删除登记信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteregistrationByIds(String ids)
    {
        return registrationMapper.deleteregistrationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除登记信息信息
     * 
     * @param id 登记信息ID
     * @return 结果
     */
    @Override
    public int deleteregistrationById(Long id)
    {
        return registrationMapper.deleteregistrationById(id);
    }
}
